﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class LoadHomeAsync : MonoBehaviour
{
    private void Start()
    {
        //PlayerPrefs.DeleteAll();
        Screen.SetResolution(960,600,false);  //设定死分辨率
        Invoke("LoadHome",2);  //两秒载入
    }

    private void LoadHome()
    {
        SceneManager.LoadSceneAsync(1);
    }
    
}
